Skip to content

refactor(automation): move automation logic to internal/core layer (#14)#23

Merged
baync180705 merged 1 commit intomainfrom
choco/MoveAutomationLogic
Apr 11, 2026
Merged

refactor(automation): move automation logic to internal/core layer (#14)#23
baync180705 merged 1 commit intomainfrom
choco/MoveAutomationLogic

Conversation

@D3vanshC
Copy link
Copy Markdown
Contributor

What this PR does

Moves automation detection, backup, and restore logic into the new internal/core/automation layer to better align with the project’s layered architecture and clearly separate responsibilities.

Changes

  • Created new package internal/core/automation
  • Moved automation detection logic:
    • automation/detect.gointernal/core/automation/scanner.go
    • Updated implementation to build and use domain.AutomationData
  • Moved automation backup logic:
    • automation/backup.gointernal/core/automation/backup.go
    • Kept the BackupAutomation(data, *tar.Writer) signature unchanged, preserving its strategy-style interface
  • Refactored restore-related logic:
    • Extracted GenerateRestorationCommands into internal/core/automation/restore.go
    • Clearly separated backup logic from restore logic
  • Updated package names and imports to reflect the new core structure

Closes #14

@D3vanshC D3vanshC requested a review from baync180705 December 20, 2025 19:55
@baync180705 baync180705 merged commit a5cd3be into main Apr 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate Automation Logic to Core

2 participants